PROJECT(CONEX-Model)

#add the files to our groups and core
SOURCE_GROUP("model" ./model/*)
#seems to be a bug in cmake, can't put these in analysis\\standard folder :(
#model detail
#SOURCE_GROUP("model-relation" ./model/relation/*)
#SOURCE_GROUP("model-context" ./model/context/*)
#represent
#SOURCE_GROUP("represent" ./represent/*)
#SOURCE_GROUP("represent-relation" ./represent/relation/*)
#SOURCE_GROUP("represent-context" ./represent/context/*)

SET(CONEX-Model_Files
	#for example 
	#./control/ControlSynset.cpp	
	./model/Concept.cc	
	./model/Id.cc
	./model/Interpretation.cc
	./model/Relation.cc
	./model/Structure.cc		
	#./model/relation/Antonym.cc
	#./model/relation/Author.cc
	#./model/relation/Classifier.cc
	#./model/relation/Hypernym.cc
	#./model/relation/Namespace.cc
	#./model/relation/Prefix.cc
	#./model/relation/Similar.cc
	#./model/relation/Synonym.cc    
	#./represent/Class.cc
	#./represent/Object.cc
	#./represent/relation/InstanceOf.cc
	#./represent/relation/Parameter.cc
	#./represent/relation/Range.cc	
	./model/Context.cc
	#./model/context/TermContext.cc
	#./model/context/VocabularyContext.cc
	#./represent/context/ObjectContext.cc
	#./represent/context/ClassContext.cc
	#./represent/context/FunctionContext.cc	
	./model/Term.cc
	./model/Vocabulary.cc	
)


#find our headers
file(GLOB_RECURSE HEADERS ${CONEX-Model_SOURCE_DIR}/model/*.h)


#create the libraries
INCLUDE_DIRECTORIES( ${CONEX_SOURCE_DIR}/src/model 
                     ${CONEX_SOURCE_DIR}/src/util)

#add_executable(CONEX-Model
#	${CONEX-Model_Files} ${HEADERS}
#)

add_library(CONEX-Model
    STATIC
	${CONEX-Model_Files} ${HEADERS}
	)

#set properties on the libraries
SET_TARGET_PROPERTIES(CONEX-Model PROPERTIES
    VERSION ${CONEX_VERSION}
    SOVERSION ${CONEX_SOVERSION}
    COMPILE_DEFINITIONS_DEBUG _DEBUG
)

#SET_TARGET_PROPERTIES( CONEX-Model PROPERTIES COMPILE_FLAGS "${CONEX-Model_SOURCE_DIR}/dal/otlv4.h" )
#SET_TARGET_PROPERTIES( CONEX-Model PROPERTIES LINK_FLAGS "odbc32.lib" )



